﻿namespace MetadataDesignerLibrary
{
    internal enum ILInfoParseMethod
    {
        Default,
        AsString,
        AsEntityHandle,
        AsEntityHandleCollection,
    }

    internal class ILInfoAttribute : Attribute
    {
        public ILInfoParseMethod ParseMethod { get; } = ILInfoParseMethod.Default;
        public bool Unique { get; } = false;

        public ILInfoAttribute()
        {
        }

        public ILInfoAttribute(bool unique)
        {
            Unique = unique;
        }

        public ILInfoAttribute(ILInfoParseMethod parseMethod)
        {
            ParseMethod = parseMethod;
        }

        public ILInfoAttribute(bool unique, ILInfoParseMethod parseMethod)
        {
            Unique = unique;
            ParseMethod = parseMethod;
        }
    }
}